/*河南星辰软件科技有限公司
@copyright Copyright (c) 2010~2022 All rights reserved.
*/
package cn.javaxc.mes.action.produce;
import java.io.*;
import java.util.*;
import java.sql.*;
import cn.javaxc.model.base.SQL;
import cn.javaxc.model.base.SQLList;
import cn.javaxc.model.base.SQLMap;
import cn.javaxc.model.base.SQLParam;
import cn.javaxc.model.page.BatisPage;
import cn.javaxc.mvcwork.controller.web.TreeBean;
import cn.javaxc.mvcwork.util.common.CommonUtil;
import cn.javaxc.mvcwork.util.common.MapListUtil;
import cn.javaxc.mvcwork.util.helper.FrameHelper;
import cn.javaxc.mvcwork.util.helper.TreeTableHelper;
import org.springframework.beans.factory.annotation.Autowired;
import cn.javaxc.system.action.base.BaseAction;
import cn.javaxc.mes.mapper.produce.IdentificationRecordMapper;
public class IdentificationRecord extends BaseAction
{
    @Autowired(required=false)
	private IdentificationRecordMapper mapper;
    /**
    检定记录
    */
    
    public Map identificationRecord() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        SQLList<SQLMap> s_ins=mapper.s_ins(params);
        result.put("s_ins", s_ins);
        
        return result;
    }
    /**
    查看检定记录
    */
    
    public Map identificationRecordDet() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        SQLList<SQLMap> t_inspect=mapper.t_inspect(params);
        SQLMap t_inspect_emt=t_inspect.getExistfirst();
        result.put("t_inspect", t_inspect_emt);
        
        return result;
    }
    /**
    修改检定记录
    */
    
    public Map identificationRecordUp() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        SQLList<SQLMap> t_inspect=mapper.t_inspect(params);
        SQLMap t_inspect_emt=t_inspect.getExistfirst();
        result.put("t_inspect", t_inspect_emt);
        
        return result;
    }
    /**
    增加检定记录修改
    */
    
    public Map identificationRecordAddSubmit() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        params.def("fileid",null);
        int CMIDinspect_id = mapper.CMIDinspect_id(params);
        result.put("CMIDinspect_id", CMIDinspect_id);
        
        return result;
    }
    /**
    修改检定记录修改
    */
    
    public Map identificationRecordUpSubmit() {
        
        Map result=new HashMap();
        SQLParam params=new SQLParam(request,result);
        
        params.def("fileid",-1);
        mapper.identificationRecordUpSubmit(params);
        
        return result;
    }
}